cmake_minimum_required(VERSION 3.10)

# 项目名称
project(SeedEngine)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 查找 JNI 包
find_package(JNI REQUIRED)

# 包含 JNI 的头文件目录
include_directories(${JNI_INCLUDE_DIRS})

# 添加库
add_library(SeedEngine SHARED library.cpp)

# 链接 JNI 库
target_link_libraries(SeedEngine ${JNI_LIBRARIES})

# 设置目标属性以去掉 'lib' 前缀
set_target_properties(SeedEngine PROPERTIES PREFIX "")